package com.lwj.mallchat.common.websocket.service;

import com.lwj.mallchat.common.websocket.domain.vo.resp.WSBaseResp;
import io.netty.channel.Channel;

/**
 * @author lwj
 * @ClassName WebSocketService
 * @date 2024/10/17 14:38
 */
public interface WebSocketService {

    void connect(Channel channel);

    void handleLogReq(Channel channel);

    void remove(Channel channel);

    void scanLogSuccess(Integer eventKey, Long id);

    void waitAuthorize(Integer eventKey);

    void authorize(Channel channel, String data);

    void sendMsgToAll(WSBaseResp<?> msg);

    void sendToUid(WSBaseResp<?> wsBaseMsg, Long uid);

    void sendToAllOnline(WSBaseResp<?> wsBaseMsg, Long skipUid);


    void sendToAllOnline(WSBaseResp<?> wsBaseResp);
}
